<!-- cuerpo -->
<div id="yui-main">
    <div class="yui-b">
        <div class="yui-gc">
            <div class="yui-u first">
                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                    <h1></h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                    <h4><b></b></h4><br>
                </div>
                <div style="height:5px"></div><!-- separator -->

                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                    <h1><?=lang('ofertas');?></h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                    <table class="espaciado2" width="100%" border="0">
                        <?php $i=0;
                        foreach ($consulta->result() as $row):?>
                            <?php $this->modelo_ec->get_articulo($row->product_id);
                            if($i%3==0) {?>
                        <tr>
                                    <?php } ?>
                            <td align="center">
                                <div class="news2">
                                    <table border="0" style="height : 210px" width="100%">
                                        <tr>
                                            <td align="center">
                                                <a title="<?=$this->modelo_ec->product_id;?>" href="<?=base_url()?>index.php/ec/lista_de_producto/<?=$this->modelo_ec->product_seo?>">
                                                    <img style="border-color : #000000; border-style : dashed; border-width : 1px; padding:5px;" src="<?=base_url();?>thumb/<?=$this->modelo_ec->product_id;?>.jpg"  alt="Imagen" title="Imagen" />
                                                </a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="botton" height="10px">
                                                <a title="<?=$this->modelo_ec->product_id;?>" href="<?=base_url()?>index.php/ec/lista_de_producto/<?=$this->modelo_ec->product_seo?>">
                                                        <?=$this->modelo_ec->product_name;?>
                                                </a>
                                            </td>
                                        <tr>
                                            <td align="right" height="10px">
                                                <b>$<?=$this->modelo_ec->product_price;?></b>
                                            </td>
                                        </tr>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                                <?php $i++;
                            endforeach;?>
                        </tr>
                    </table>
                </div>
                <div style="height:5px"></div><!-- separator -->
                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                    <h1>Mas vistos</h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                    <table class="espaciado2" width="100%">
                        <?php $i=0;
                        foreach ($consulta1->result() as $row):?>
                            <?php $this->modelo_ec->get_articulo($row->product_id);
                            if($i%3==0) {?>
                        <tr>
                                    <?php } ?>
                            <td align="center">
                                <div class="news2">
                                    <table border="0" style="height : 210px" width="100%">
                                        <tr>
                                            <td align="center">
                                                <a title="<?=$this->modelo_ec->product_id;?>" href="<?=base_url()?>index.php/ec/lista_de_producto/<?=$this->modelo_ec->product_seo?>">
                                                        <?=$row->part_number?>  <img style="border-color : #000000; border-style : dashed; border-width : 1px; padding:5px;" src="<?=base_url();?>thumb/<?=$this->modelo_ec->product_id;?>.jpg"  alt="Imagen" title="Imagen" />
                                                </a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="botton" height="10px">
                                                <a title="<?=$this->modelo_ec->product_id;?>" href="<?=base_url()?>index.php/ec/lista_de_producto/<?=$this->modelo_ec->product_seo?>">
                                                        <?=$this->modelo_ec->product_name;?>
                                                </a>
                                            </td>
                                        <tr>
                                            <td align="right" height="10px">
                                                <b>$<?=$this->modelo_ec->product_price;?></b>
                                            </td>
                                        </tr>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                                <?php $i++;
                            endforeach;?>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="yui-u">

                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                        <h1>Categorias</h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                        <?=$this->modelo_categorias->html;?>
                </div>
                <div style="height:5px"></div><!-- separator -->

                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                        <h1>Cursos y Consejos gratuitos</h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                        <?=$this->modelo_cursos->html;?>
                </div>

                <div style="height:5px"></div><!-- separator -->
                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                        <h1>Mini encuesta</h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                        <iframe src="http://spreadsheets.google.com/embeddedform?key=0Apzax22RGU4gdHowRzVua3pnUHNWRnl1dGdBVWVkdkE" width="100%" height="1171" frameborder="0" marginheight="0" marginwidth="0">Cargando...</iframe>
                       <!-- <img width="225px" src="<?=base_url();?>images/ninja.gif"> -->
                </div>

            </div>

        </div>
    </div>
</div>
<!-- end cuerpo -->
